﻿using NUnit.Framework;

namespace cryptv2.tests
{
  [TestFixture]
  public class TestCrypt
  {
    [Test]
    public void mit_gleichem_Password()
    {
      var filenameToCrypt = @"FilesToCryptDecrypt\File1.txt";
      var cryptedFilename = @"Temp\File1.txt.crypted";
      var password = "Password";

      Crypt.File(filenameToCrypt, cryptedFilename, password);

      var decryptedFilename = @"Temp\File1.txt.actual";
      Decrypt.File(cryptedFilename, decryptedFilename, password);

      var expectedFilename = @"FilesToCryptDecrypt.Expected\File1.txt";
      FileAssert.AreEqual(decryptedFilename, expectedFilename);
    }
  }
}
